package com.hrm.controller;

import com.hrm.pojo.Dept;
import com.hrm.utils.entity.Result;
import io.swagger.annotations.*;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
@RequestMapping("/dept")
@Api(tags = "部门模块")
public class DeptController {

    @GetMapping("/list")
    @ApiOperation(value = "查询部门列表")
    public Result test(@ApiParam(required = false,value = "部门名称") String deptName){
        return null;
    }


    @PostMapping("/add")
    @ApiOperation(value = "增加部门")
    @ApiImplicitParam(required = true,value = "部门实体类",name="dept")
    public Result add(@RequestBody Dept dept){
        return null;
    }


    @GetMapping("/page")
    @ApiOperation(value = "分页查询列表")
    @ApiImplicitParams({
            @ApiImplicitParam(required = true,value="当前页数",name="pageNum"),
            @ApiImplicitParam(required = true,value="条数",name="pageSize"),
    })
    public Result page(Integer pageNum,Integer pageSize){
        return null;
    }
}
